<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="utf-8">
<!-- QCtmApplication.cpp -->
  <title>QCtmApplication Class | QCustomUi 1.10.0</title>
  <link rel="stylesheet" type="text/css" href="style/offline-simple.css" />
  <script type="text/javascript">
    document.getElementsByTagName("link").item(0).setAttribute("href", "style/offline.css");
    // loading style sheet breaks anchors that were jumped to before
    // so force jumping to anchor again
    setTimeout(function() {
        var anchor = location.hash;
        // need to jump to different anchor first (e.g. none)
        location.hash = "#";
        setTimeout(function() {
            location.hash = anchor;
        }, 0);
    }, 0);
  </script>
</head>
<body>
<div class="header" id="qtdocheader">
    <div class="main">
    <div class="main-rounded">
        <div class="navigationbar">
        <ul>
<li><a href="index.html">QCustomUi 1.10.0</a></li>
<li><a href="index.html">QCustomUi</a></li>
<li>QCtmApplication</li>
<li id="buildversion">QCustomUi 1.10.0 Reference Documentation</li>
    </ul>
    </div>
</div>
<div class="content">
<div class="line">
<div class="content mainContent">
<div class="sidebar">
<div class="toc">
<h3 id="toc">Contents</h3>
<ul>
<li class="level1"><a href="#public-functions">Public Functions</a></li>
<li class="level1"><a href="#details">Detailed Description</a></li>
</ul>
</div>
<div class="sidebar-content" id="sidebar-content"></div></div>
<h1 class="title">QCtmApplication Class</h1>
<!-- $$$QCtmApplication-brief -->
<p><a href="https://doc.qt.io/qt/qapplication.html">QApplication</a> 的扩展，设置了默认样式和单实例运行的接口. <a href="#details">More...</a></p>
<!-- @@@QCtmApplication -->
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> Header:</td><td class="memItemRight bottomAlign">  <span class="preprocessor">#include &lt;QCtmApplication.h&gt;</span>
</td></tr><tr><td class="memItemLeft rightAlign topAlign"> Inherits:</td><td class="memItemRight bottomAlign"> <a href="https://doc.qt.io/qt/qapplication.html">QApplication</a></td></tr></table></div>
<ul>
<li><a href="qctmapplication-members.html">List of all members, including inherited members</a></li>
</ul>
<h2 id="public-functions">Public Functions</h2>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qctmapplication.html#QCtmApplication">QCtmApplication</a></b>(int &amp;<i>argc</i>, char **<i>argv</i>, int <i>f</i> = ApplicationFlags, bool <i>defaultStyle</i> = true)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual </td><td class="memItemRight bottomAlign"><b><a href="qctmapplication.html#dtor.QCtmApplication">~QCtmApplication</a></b>()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qctmapplication.html#checkOtherProcess">checkOtherProcess</a></b>(const QString &amp;<i>key</i>)</td></tr>
</table></div>
<!-- $$$QCtmApplication-description -->
<div class="descr">
<h2 id="details">Detailed Description</h2>
</div>
<!-- @@@QCtmApplication -->
<div class="func">
<h2>Member Function Documentation</h2>
<!-- $$$QCtmApplication[overload1]$$$QCtmApplicationint&char**intbool -->
<h3 class="fn" id="QCtmApplication">QCtmApplication::<span class="name">QCtmApplication</span>(<span class="type">int</span> &amp;<i>argc</i>, <span class="type">char</span> **<i>argv</i>, <span class="type">int</span> <i>f</i> = ApplicationFlags, <span class="type">bool</span> <i>defaultStyle</i> = true)</h3>
<p>构造函数 <i>argc</i>, <i>argv</i>, <i>f</i>, <i>defaultStyle</i></p>
<!-- @@@QCtmApplication -->
<!-- $$$~QCtmApplication[overload1]$$$~QCtmApplication -->
<h3 class="fn" id="dtor.QCtmApplication"><code>[virtual] </code>QCtmApplication::<span class="name">~QCtmApplication</span>()</h3>
<p>析构函数.</p>
<!-- @@@~QCtmApplication -->
<!-- $$$checkOtherProcess[overload1]$$$checkOtherProcessconstQString& -->
<h3 class="fn" id="checkOtherProcess"><span class="type">bool</span> QCtmApplication::<span class="name">checkOtherProcess</span>(const <span class="type"><a href="https://doc.qt.io/qt/qstring.html">QString</a></span> &amp;<i>key</i>)</h3>
<p>检测并返回其他程序是否持有相同的 <i>key</i>.</p>
<!-- @@@checkOtherProcess -->
</div>
        </div>
       </div>
   </div>
   </div>
</div>
<div class="footer">
   <p>
   <acronym title="Copyright">&copy;</acronym> QCustomUi
   Documentation contributions included herein are the copyrights of
   their respective owners.<br/>    The documentation provided herein is licensed under the terms of the    <a href="http://www.gnu.org/licenses/fdl.html">GNU Free Documentation    License version 1.3</a> as published by the Free Software Foundation.<br/> </div>
</body>
</html>
